/* 
 * File: persister.h
 * Project: QTimeTracker
 * Author: Steve Sindelar, http://stevesindelar.cz
 * Licence: NewBSD licence.
 */

#ifndef PERSISTER_H
#define PERSISTER_H

#include <QList>
#include "item.h"

namespace Core
{

	/**
	 * Interface for Items persister.
	 */
	class Persister
	{
	protected:
		Persister() {}
	public:
		/**
		 * Persists items to data store.
		 */
		virtual void save(QList<Item*> items) = 0;
		/**
		 * Loads items from datastore.
		 */
		virtual QList<Item*> load() = 0;
	};

}

#endif //PERSISTER_H
